import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.edge.EdgeDriver;

import java.io.InputStream;
import java.net.URL;

/**
 * created by 猴子请来的逗比 On 2021/4/2
 *
 * @author by 猴子请来的逗比
 */
public class Test {
    public static void main(String[] args) {
        //获取项目路径
        URL resource = Test.class.getClassLoader().getResource("driver/edge/89/msedgedriver.exe");
        System.getProperties().setProperty("webdriver.edge.driver",resource.getPath());
        //开启webDriver进程
        WebDriver webDriver = new EdgeDriver();
        //
        webDriver.manage().window().maximize();
        webDriver.get("http://www.baidu.com");


    }
}
